#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <vector>

using namespace std;

struct ListNode {
    int val;
    ListNode* next;
    ListNode(int x) : val(x), next(NULL) {}
};

struct TreeNode {
    int val;
    TreeNode* left;
    TreeNode* right;
    TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};

class Solution {
   public:
    int cuttingRope(int n) {
        if (n < 4) return n - 1;
        int count = 1;
        while (n > 0) {
            count *= (n > 4) ? 3 : n;
            n -= 3;
        }
        return count;
    }
};

int main() {
    cout << "Hello, World!";
    int i = Solution().cuttingRope(10);
    return 0;
}